<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>

<body>
    <% for(var i=0;i<arr.length;i++){ %>
    <div>用户名：<%=arr[i].name%> 密码：<%=arr[i].pass%></div>
    <% } %>
</body>

</html>